<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>患者_治疗记录</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.2.0.css" />
    <link rel="stylesheet" type="text/css" href="../css/BasicPatientInformation.css" />
</head>

<body>
    <main id="app">
        <div class="aui-padded-5" id="tab1-con">
            <div id="tab1-con4">
                <div class="tab-index-4-list" id="HoTreatmentRecord">
                    <h2>治疗次数</h2><span></span>
                    <div>
                        <span>时间：</span>
                        <span>体位：</span>
                        <span>监护：</span>
                    </div>
                    <div>
                        <span>日期：<span>4</span></span>
                        <span>管道：5</span>
                        <span>吸痰：6</span>
                    </div>
                    <div>
                        <span>吸氧方式：7</span>
                        <span>静脉输液：8</span>
                        <span>舱内抢救：9</span>
                    </div>
                    <div>
                        <span>陪护人员：0</span>
                        <span>医护陪护：01</span>
                        <span>单独开舱：02</span>
                    </div>
                    <div>
                        <span>护理级别：03</span>
                        <span>吸氧方案：04</span>
                        <span>舱内压力TAT：05</span>
                    </div>
                    <div>
                        <span>执行者签名：06</span>
                        <span>治疗总时程min：07</span>
                        <span>修改医嘱签名：08</span>
                    </div>




                    <h2>治疗次数</h2><span></span>
                    <div>
                        <span>时间：</span>
                        <span>体位：</span>
                        <span>监护：</span>
                    </div>
                    <div>
                        <span>日期：<span>4</span></span>
                        <span>管道：5</span>
                        <span>吸痰：6</span>
                    </div>
                    <div>
                        <span>吸氧方式：7</span>
                        <span>静脉输液：8</span>
                        <span>舱内抢救：9</span>
                    </div>
                    <div>
                        <span>陪护人员：0</span>
                        <span>医护陪护：01</span>
                        <span>单独开舱：02</span>
                    </div>
                    <div>
                        <span>护理级别：03</span>
                        <span>吸氧方案：04</span>
                        <span>舱内压力TAT：05</span>
                    </div>
                    <div>
                        <span>执行者签名：06</span>
                        <span>治疗总时程min：07</span>
                        <span>修改医嘱签名：08</span>
                    </div>
                </div>
            </div>
        </div>
    </main>
</body>
<script src="../js/jquery.min.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/api.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/vue.js" charset="utf-8" type="text/javascript"></script>
<script src="../js/ToConfigure.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/aui-toast.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/aui-dialog.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/aui-tab.js" charset="utf-8" type="text/javascript"></script>
<script type="text/javascript">
    var vm = null;
    apiready = function () {
        //接收患者ID
        var F_ID = api.pageParam.F_ID;

        vm = new Vue({
            el: '#app',
            data: {
                F_ID: 0, //患者唯一标识
            },
            created() {
                //获取所属医院IP地址
                var Url_IP = ToConfigure_IP("Gorgeous");
                //定义toast提示框
                var toast = new auiToast();
                //清空页面
                $("#HoTreatmentRecord").html("");
                //定义拼接患者治疗记录单标签
                var HoTreatmentRecord = "";
                if (F_ID !== undefined && F_ID !== '') {
                    this.F_ID = F_ID;
                }

                //判断预约这ID不为空
                if (this.F_ID !== null && this.F_ID !== '' && this.F_ID !== undefined) {
                    var JsParms = new Object();
                    JsParms.trTrId = this.F_ID;
                    //查询患者治疗记录
                    $.ajax({
                        url: Url_IP + '/businessmanagement/hotreatmentrecord/getHoTreatmentRecord',
                        type: 'post',
                        async: false,
                        contentType: "application/json",
                        dataType: "json",
                        data: JSON.stringify(JsParms),
                        success: function (result) {
                            /**
                             * 验证返回信息是否为空
                             */
                            if (result.success == true) {
                                /**
                                 *  循环object
                                 */
                                $.each(result.data.list, function (i, o) {
                                    HoTreatmentRecord += " <h2>治疗次数：" + (i + 1) + "</h2>";
                                    HoTreatmentRecord += "<div><span>日期：" + o.trOperTime + "</span><span>时间：" + o.hoCabinOperationRecordEntity.corCompressionTime + "</span><span>体位：" + o.trPosition + "</span></div>";
                                    HoTreatmentRecord += "<div><span>吸氧方案：" + o.hoCabinOperationRecordEntity.corProgrammeOne + "</span><span>管道：" + o.trTheConduit + "</span><span>吸痰：" + o.trSputum + "</span></div>";
                                    HoTreatmentRecord += "<div><span>吸氧方式：" + o.trOxygenInhalation + "</span><span>静脉输液：" + o.trVeinInfusion + "</span><span>舱内抢救：" + o.hoCabinOperationRecordEntity.corRescue + "</span></div>";
                                    HoTreatmentRecord += "<div><span>陪护人员：" + o.trAccompany + "</span><span>医护陪护：" + o.trMedicalCare + "</span><span>单独开舱：" + o.hoCabinOperationRecordEntity.corAlone + "</span></div>";
                                    HoTreatmentRecord += "<div><span>治疗总时程min：" + o.hoCabinOperationRecordEntity.corTreatmentDuration + "</span><span>舱内压力ATA：" + o.hoCabinOperationRecordEntity.corPressure + "</span><span>修改医嘱签名：" + o.trMoOperator + "</span></div>";
                                    HoTreatmentRecord += "<br/><div style=\"border-bottom:1px #dddddd solid\"></div>"
                                })
                                if (HoTreatmentRecord != "" && HoTreatmentRecord != null) {
                                    $("#HoTreatmentRecord").html(HoTreatmentRecord);
                                } else {
                                    $("#HoTreatmentRecord").html("");
                                }
                            } else {
                                /**
                                 *  弹窗提示 暂无相关信息
                                 */
                                toast.fail({
                                    title: "加载失败",
                                    duration: 2000
                                });
                            }
                        },
                        error: function (result) {
                            /**
                             *  提示错误信息
                             */
                            toast.fail({
                                title: "加载失败",
                                duration: 2000
                            });
                        }
                    });
                }

            }
        });
    }
</script>

</html>